package com.local.quartz.springquartz;

import org.joda.time.DateTime;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class FirstScheduledJob implements Job {
	private AnotherBean anotherBean;  
	public void setAnotherBean(AnotherBean anotherBean) {  
        this.anotherBean = anotherBean;  
    }

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		DateTime dt = new DateTime();
		System.out.println("①每5S执行一次:"+dt.toString("yyyy-MM-dd hh:mm:ss SSS"));
	}
}
